package com.ibeeking.found.cop.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ibeeking.found.common.base.BaseDO;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName  CopSensitiveWordDO
 * @Description 敏感词管理
 * @Author ibeeking
 * @Date 2021-01-15 10:44
 **/
@Data
@TableName("cop_sensitive_word")
public class CopSensitiveWordDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = -1L;
    /**
     * 来自企微的ruleId
     */
    @TableField(value = "rule_id")
    private String ruleId;

    /**
     * 敏感词
     */
    @TableField(value = "name")
    private String name;

    /**
     * 匹配词列表
     */
    @TableField(value = "word_list")
    private String wordList;

    /**
     * 额外的规则
     */
    @TableField(value = "extra_rule")
    private String extraRule;

    /**
     * 额外的拦截语义规则，1：手机号、2：邮箱地:、3：红包
     */
    @TableField(value = "semantics_list")
    private String semanticsList;

    /**
     * 拦截方式，1:警告并拦截发送；2:仅发警告
     */
    @TableField(value = "intercept_type")
    private Integer interceptType;

    /**
     * 敏感词适用范围
     */
    @TableField(value = "applicable_range")
    private String applicableRange;


    /**
     * 发布状态；0=禁用；1=启用
     */
    @TableField(value = "status")
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("build_time")
    private LocalDateTime buildTime;
    /**
     * 同步状态：0=未同步；1=已同步
     */
    @TableField(value = "sync_status")
    private Integer syncStatus;
}
